<script setup lang="ts">
import { useK8SApi } from "@/views/domain/kubeHud/api/k8s/k8s";
import { reactive } from "vue";
import NamespaceSelector from "../namespace/widgets/NamespaceSelector.vue";
import KConfigMapList from "./widgets/KConfigMapList.vue";
const { configMapRepo } = useK8SApi();

const query = reactive<{
  namespace?: string;
}>({ namespace: "default" });
</script>

<template>
  <div>
    <el-card>
      <el-form v-model="query" inline label-position="top">
        <el-form-item label="Namespace" prop="namespace">
          <NamespaceSelector v-model="query.namespace" />
        </el-form-item>
      </el-form>
      <KConfigMapList :namespace="query.namespace" />
    </el-card>
  </div>
</template>
<style lang="scss" scoped></style>
